package org.bwgl.demo1.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import org.bwgl.demo1.pojo.User;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
//    @Select("select  * from user")
//    List<User> getAllUser();
//
//    @Insert("insert into user(id,name,password) values(#{id},#{name},#{password}) ")
//    void addUser(User user);
//
//    @Update("update user set id=#{id},name=#{name},password=#{password} where id=#{id}")
//    void updateUser(User user);
//
//    @Select("select * from user where id=#{id}")
//    User getUserById(int id);
//
//    @Delete("delete from user where id=#{id}")
//    void deleteUserById(int id);
}
